(function () {
    let num = 0
    function add() {
        num++
        console.log(num)
    }
    function reduce() {
        num--
        console.log(num)
    }

    window.model = {
        add,
        reduce
    }
})()